package persistence.sqlsession;

import java.util.List;

public interface SqlSession {
    // 查询多个
    <E> List<E> selectList(String statementId, Object... params) throws Exception;

    // 查询单个
    <E> E selectOne(String statementId, Object... params) throws Exception;

    void deleteOne(String statementId,Object... params)throws Exception;

    void updateOne(String statementId, Object... params) throws Exception;

    void insertOne(String statementId, Object... params) throws Exception;
    // 为接口生成实现
    <E> E getMapper(Class<?> mapperClass);
}
